home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
text_utl
/
emedit20
/
find.fr_
/
find.fr
Wrap
Text File
|
1995-11-19
|
5KB
|
171 lines
VERSION 2.00
Begin Form frmFind
Caption = "Find"
ClientHeight = 2712
ClientLeft = 780
ClientTop = 2196
ClientWidth = 4908
Height = 3036
Left = 732
LinkTopic = "Form2"
ScaleHeight = 2712
ScaleWidth = 4908
Top = 1920
Width = 5004
Begin ComboBox comboText
Height = 300
Left = 1170
TabIndex = 0
Top = 210
Width = 2355
End
Begin Frame Frame4
Caption = "Origin"
Height = 975
Left = 2640
TabIndex = 10
Top = 1380
Width = 2055
Begin OptionButton optOrigin
Caption = "&From Cursor"
Height = 285
Index = 1
Left = 240
TabIndex = 12
Top = 240
Value = -1 'True
Width = 1575
End
Begin OptionButton optOrigin
Caption = "&Entire Scope"
Height = 285
Index = 0
Left = 240
TabIndex = 11
Top = 600
Width = 1575
End
End
Begin Frame Frame1
Caption = "Direction"
Height = 570
Left = 150
TabIndex = 6
Top = 1980
Width = 2145
Begin OptionButton optDirection
Caption = "&Down"
Height = 252
Index = 1
Left = 960
TabIndex = 8
Top = 240
Value = -1 'True
Width = 852
End
Begin OptionButton optDirection
Caption = "&Up"
Height = 252
Index = 0
Left = 240
TabIndex = 7
Top = 240
Width = 612
End
End
Begin CheckBox chkCase
Caption = "Match &Case"
Height = 375
Left = 240
TabIndex = 3
Top = 960
Width = 1455
End
Begin CommandButton cmdcancel
Cancel = -1 'True
Caption = "Cancel"
Height = 372
Left = 3720
TabIndex = 2
Top = 600
Width = 1092
End
Begin CommandButton cmdFind
Caption = "&OK"
Default = -1 'True
Height = 372
Left = 3720
TabIndex = 1
Top = 120
Width = 1092
End
Begin Frame Frame2
Caption = "Options"
Height = 975
Left = 120
TabIndex = 9
Top = 720
Width = 2175
Begin CheckBox chkWholeWords
Caption = "&Whole Words Only"
Height = 315
Left = 120
TabIndex = 4
Top = 600
Width = 1935
End
End
Begin Label Label1
Caption = "Fi&nd What:"
Height = 255
Index = 0
Left = 120
TabIndex = 5
Top = 240
Width = 975
End
End
Option Explicit
Sub cmdCancel_Click ()
' gFindString = comboText.Text
Hide
End Sub
Sub cmdFind_Click ()
Dim FoundIt As Integer
UpdateComboList comboText, (comboText.Text) ' add text to combo list if not already exists
Hide
FoundIt = FindIt((comboText.Text), (chkCase.Value), (chkWholeWords.Value), (optDirection(0).Value), (optOrigin(0).Value), "", False)
End Sub
Sub comboText_Change ()
If comboText.Text = "" Then
cmdFind.Enabled = False
Else
cmdFind.Enabled = True
End If
End Sub
Sub comboText_Click ()
If comboText.Text = "" Then
cmdFind.Enabled = False
Else
cmdFind.Enabled = True
End If
End Sub
Sub Form_Activate ()
comboText.SetFocus
End Sub
Sub Form_Load ()
cmdFind.Enabled = False
'gFindDirection = 1
End Sub
Sub optDirection_Click (index As Integer)
'gFindDirection = index
End Sub